package net.cs.rm;

import java.util.HashMap;

import org.springframework.beans.BeanWrapper;
import org.springframework.beans.BeanWrapperImpl;

public class Node {
	Object me;
	HashMap<String,Node[]> rels=null;
	public Object getMe() {
		return me;
	}
	public void setMe(Object me) {
		this.me = me;
	}
	public HashMap<String, Node[]> getRels() {
		return rels;
	}
	public void setRels(HashMap<String, Node[]> rels) {
		this.rels = rels;
	}
	public String toString(){
		if(me==null){
			return "";
		}else{
			BeanWrapper bw = new BeanWrapperImpl(me);
			Object title = bw.getPropertyValue("title");
			if(title==null){
				title = "";
			}
			return bw.getPropertyValue("id").toString()+title;
		}
	} 
}
